﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;


public class TestPanel : UIBase
{
    [SerializeField]
    private Button btn;

    void Start()
    {
        btn.onClick.AddListener(onClick);
    }

    void onClick()
    {
        //派发任务，播放声音
        Dispatch(AreaCode.AUDIO,AudioEvent.PLAY_AUDIO,"AudioClipName_001");
        Dispatch(AreaCode.UI,AudioEvent.PLAY_AUDIO,"AudioClipName_001");

    }


}
